package com.asiainfo.dacp.datastash.broker.facade;

import com.asiainfo.dacp.datastash.broker.core.BrokerModel;
import com.asiainfo.dacp.datastash.broker.core.vo.StashUnitTask;
import com.asiainfo.dacp.datastash.broker.tracelog.StashTraceLogger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 *
 * @author MeiKefu
 * @date 2017-12-1
 */
@Service
public class UnitWorkFacade {

    @Autowired
    private BrokerModel brokerModel;

    @Autowired
    private StashTraceLogger tracelog;
    private String clzName = this.getClass().getSimpleName();

    public StashUnitTask fetchWork(){
        return brokerModel.fetchCurrentWork();
    }
/*
    public void updateWork(StashUnitSharding stashUnitSharding){
        stashUnitProcessingModel.updateStashUnitSharding(stashUnitSharding);
    }
*/
}
